API: Add gdk_display_create_gl_context()
authorBenjamin Otte <otte@redhat.com>
Wed, 20 Oct 2021 18:03:00 +0000 (20:03 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 20 Oct 2021 18:31:33 +0000 (20:31 +0200)
commit2601c39cb2cd985f316fb03439a3a30325c3ea64
tree059bf78e3a90e454d0d9a20b398b81e03d91c7c9
parent53312cf696516cdeb1c284008992022a210bb233
API: Add gdk_display_create_gl_context()

This is an alternative to gdk_surface_create_gl_context() when the
context is meant to only draw to textures.

This is useful in the testsuite or in GStreamer or with GLArea,
basically whenever we want to do GL stuff but don't need to actually
draw anything on screen.

A bunch of code will need to be updated to deal with context->surface
being NULL.
gdk/gdkdisplay.c
gdk/gdkdisplay.h
gdk/gdkglcontext.c
gdk/gdkglcontextprivate.h
gdk/gdksurface.c